/*
** my_strncmp.c for my_strncmp in /home/labonn_c//Documents/piscine/Jour_O6
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Mon Oct 10 17:05:00 2011 christophe labonnemartinez
** Last update Mon Oct 10 17:12:04 2011 christophe labonnemartinez
*/

int	my_strncmp(char *s1, char *s2, int n)
{
  int	i;

  i = 0;
  while (s1[i] == s2[i] && s1[i] != '\0' && s2[i] != '\0' && i < n)
    i = i + 1;
  return (*s1 - *s2);
}
